package com.sunlands.zlcx.usercenter.repository;

import com.sunlands.zlcx.usercenter.domain.ParentTargetDO;
import com.sunlands.zlcx.usercenter.domain.TargetDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ParentTargetRepository extends JpaRepository<ParentTargetDO, Long> {

    List<ParentTargetDO> findByTargetTypeOrderByOrdersAsc(Integer targetType);

    int countByTargetName(String targetName);
}

